package com.heima.article.listener;

import lombok.extern.slf4j.Slf4j;
import org.apache.kafka.streams.StreamsBuilder;
import org.apache.kafka.streams.kstream.KStream;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ArticleHotListener {
	
	@KafkaListener(topics = "itcast-topic-out")
	public void articleHot(String message) {
		System.out.println("收到流失处理的消息了");
		System.out.println(message);
	}
}
